﻿using JuCloudy.Data.Entity.Service;
using NHibernate;
using NHibernate.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JuCloudy.Data.Nhibernate.Service
{
    public class AppDataContext : NHibernateDataContext
    {
        public AppDataContext(ISession session)
            : base(session) { }

        public IQueryable<SysStructure> Structures
        {
            get
            {
                return new NhQueryable<SysStructure>(Session.GetSessionImplementation());

            }
        }

        public IQueryable<AppToursimContent> ToursimContent
        {
            get
            {
                return new NhQueryable<AppToursimContent>(Session.GetSessionImplementation());

            }
        }

        public IQueryable<AppToursimItinerary> ToursimItinerary
        {
            get
            {
                return new NhQueryable<AppToursimItinerary>(Session.GetSessionImplementation());

            }
        }

        public IQueryable<AppToursimProduct> ToursimProduct
        {
            get
            {
                return new NhQueryable<AppToursimProduct>(Session.GetSessionImplementation());

            }
        }
    }
}
